<?php

namespace Common\Decorator;

use Common\Interfaces\IDecorator;

class FontSizeDecorator implements IDecorator
{
    private $size;

    public function __construct($size = '14px')
    {
        $this->size = $size;
    }

    public function beforeDecoratorIndex()
    {
        echo '<div style="font-size:' . $this->size . '">';
    }
    public function afterDecoratorIndex()
    {
        echo '</div>';
    }
}
